projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bda1c6
)
core: Squash a memory leak while reading gvariants
author
Colin Walters
<walters@verbum.org>
Wed, 9 Nov 2011 11:06:33 +0000
(06:06 -0500)
committer
Colin Walters
<walters@verbum.org>
Wed, 9 Nov 2011 11:07:13 +0000
(06:07 -0500)
libostree/ostree-core.c
patch
|
blob
|
history
diff --git
a/libostree/ostree-core.c
b/libostree/ostree-core.c
index 904ce05d9e42bd4520c899f8ab6fc970743c757d..a3fc34cad1e4dd84a6e4f821f160d2d208654159 100644
(file)
--- a/
libostree/ostree-core.c
+++ b/
libostree/ostree-core.c
@@
-346,7
+346,6
@@
ostree_parse_metadata_file (const char *path,
&container, error))
goto out;
- g_variant_ref_sink (container);
g_variant_get (container, "(uv)",
&ret_type, &ret_variant);
ret_type = GUINT32_FROM_BE (ret_type);
@@
-359,7
+358,7
@@
ostree_parse_metadata_file (const char *path,
ret = TRUE;
*out_type = ret_type;
- *out_variant = g_variant_
ref_sink
(ret_variant);
+ *out_variant = g_variant_
take_ref
(ret_variant);
ret_variant = NULL;
out:
if (ret_variant)